﻿<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="utf-8" />
<title>{:config('domain_config.console_name')}</title>
<meta name="description" content="{:config('domain_config.console_name')}" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="__STATIC__/console/css/app.v2.css" type="text/css" cache="true" />
<!-- <link rel="stylesheet" href="__STATIC__/console/js/calendar/bootstrap_calendar.css" type="text/css" cache="true" /> -->
<link rel="stylesheet" href="__STATIC__/console/fonts/font-awesome.min.css" cache="true">
<link rel="stylesheet" href="__STATIC__/console/js/fuelux/fuelux.css" type="text/css" cache="true" />

<!-- <link rel="stylesheet" href="__STATIC__/console/js/datepicker/datepicker.css" type="text/css" cache="true" /> -->
<!--[if lt IE 9]> <script src="__STATIC__/console/js/ie/html5shiv.js" cache="true"></script> <script src="__STATIC__/console/js/ie/respond.min.js" cache="true"></script> <script src="__STATIC__/console/js/ie/excanvas.js" cache="true"></script> <![endif]-->

</head>
<body>
<section class="vbox">
  <header class="bg-dark dk header navbar navbar-fixed-top-xs">
    <div class="navbar-header aside-md"> <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav"> <i class="fa fa-bars"></i> </a> <a href="/" class="navbar-brand" data-toggle="fullscreen"><img src="__STATIC__/console/images/logo.png" class="m-r-sm">{:config('domain_config.console_name')}</a> <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user"> <i class="fa fa-cog"></i> </a> </div>
    <ul class="nav navbar-nav navbar-right hidden-xs nav-user">
      <li class="dropdown hidden-xs">
        <a href="javascript:void(0);" id="clear_cache" class="dropdown-toggle dker" data-toggle="dropdown"><i class="fa fa-fw fa-modx"></i>清除缓存</a>
      </li>

      <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="thumb-sm avatar pull-left"> <img src="__STATIC__/console/images/avatar.jpg"> </span> {:session('consoler.admin_username','','console')} <b class="caret"></b> </a>
        <ul class="dropdown-menu animated fadeInRight">
          <span class="arrow top"></span>
          <li> <a href="{:url('console/index/repass')}">修改密码</a> </li>
          <li> <a href="{:url('console/index/logout')}"  >退出</a> </li>
        </ul>
      </li>
    </ul>
  </header>
  <section>
    <section class="hbox stretch"> <!-- .aside -->
      <aside class="bg-dark lter aside-md hidden-print" id="nav">
        <section class="vbox">

          <header class="header bg-primary lter text-center clearfix" id="now_time" style="color: #fff;font-size: 16px;line-height: 25px;">

          </header>

          <section class="w-f scrollable">
            <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333"> <!-- nav -->
              <nav class="nav-primary hidden-xs">
                <ul class="nav">
                  <li {eq name="active" value="console" } class="active" {/eq}>
                    <a href="{:url('console/index/index')}" >
                      <i class="fa fa-dashboard icon">
                        <b class="bg-danger"></b>
                      </i>
                      <span style="font-family: '微软雅黑'">控制台</span>
                    </a>
                  </li>

                  {volist name="left_bar" id="mo"}
                  <li {if condition="$mo.active eq $active"} class="active" {/if}>
                    <a href="javascript:void(0)" >
                      <i class="fa {$mo.icon} icon">
                        <b style="background-color: {$mo.bg_color}"></b>
                      </i>
                      <span class="pull-right">
                        <i class="fa fa-angle-down text"></i>
                        <i class="fa fa-angle-up text-active"></i>
                      </span>
                      <span>{$mo.menu}</span>
                    </a>
                    <ul class="nav lt">
                      {volist name="mo.son_menu" id="son"}
                      <li {if condition="isset($son.active) && isset($active_2) && $son.active eq $active_2"} class="active" {/if}>
                        <a {if condition="isset($son.sun_menu)"} href="javascript:void(0);" {else /} href="{:url($son.url)}" {/if}  >
                          <i class="fa fa-angle-right"></i>
                          <span>{$son.menu}</span>
                        </a>
                        {if condition="isset($son.sun_menu)"}
                        <ul class="nav lt">
                          {volist name="son.sun_menu" id="sun"}
                          <li >
                            <a href="{:url($sun.url)}" >
                              <i class="fa fa-angle-double-right"></i>
                              <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$sun.menu}</span>
                            </a>
                          </li>
                          {/volist}
                        </ul>
                        {/if}

                      </li>
                      {/volist}
                    </ul>
                  </li>
                  {/volist}
                </ul>
              </nav>
              <!-- / nav --> </div>
          </section>

          <!-- 左侧底部 -->
          {include file="public:left_menu_footer" /}
          <!-- 左侧底部  结束-->

        </section>
      </aside>
      <!-- /.aside -->

        {block name="content"}{/block}

        <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a> </section>
      <aside class="bg-light lter b-l aside-md hide" id="notes">
        <div class="wrapper">Notification</div>
      </aside>
    </section>
  </section>
</section>


<script src="__STATIC__/console/js/app.v2.js"></script>
<!-- Bootstrap --> <!-- App -->
<script src="__STATIC__/console/js/charts/easypiechart/jquery.easy-pie-chart.js" cache="true"></script>
<script src="__STATIC__/console/js/charts/sparkline/jquery.sparkline.min.js" cache="true"></script>
<script src="__STATIC__/console/js/calendar/bootstrap_calendar.js" cache="true"></script>
<script src="__STATIC__/console/js/sortable/jquery.sortable.js" cache="true"></script>
</body>
</html>

<script type="text/javascript" src="__STATIC__/common/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/common/js/jquery.form.js"></script>
<script type="text/javascript" src="__STATIC__/common/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/common/js/suport.js"></script>
<script type="text/javascript" src="__STATIC__/console/js/suport.js"></script>
<link rel="stylesheet" href="__STATIC__/console/css/suport.css" type="text/css" cache="true" />

<script src="__STATIC__/console/js/combodate/combodate.js" cache="false"></script>
<script src="__STATIC__/console/js/fuelux/fuelux.js" cache="true"></script>
    <!-- datepicker -->
<script src="__STATIC__/console/js/datepicker/bootstrap-datepicker.js" cache="true"></script>
    <!-- slider -->
<script src="__STATIC__/console/js/slider/bootstrap-slider.js" cache="true"></script>
    <!-- file input -->
<script src="__STATIC__/console/js/file-input/bootstrap-filestyle.min.js" cache="true"></script>
    <!-- combodate -->
<script src="__STATIC__/console/js/libs/moment.min.js" cache="true"></script>
<script src="__STATIC__/console/js/combodate/combodate.js" cache="true"></script>
    <!-- select2 -->
<script src="__STATIC__/console/js/select2/select2.min.js" cache="true"></script>
    <!-- wysiwyg -->
<script src="__STATIC__/console/js/wysiwyg/bootstrap-wysiwyg.js" cache="true"></script>

<script type="text/javascript">
  function run(){
   var time = new Date();//获取系统当前时间
   var year = time.getFullYear();
   var month = time.getMonth()+1;
   var date= time.getDate();//系统时间月份中的日
   var day = time.getDay();//系统时间中的星期值
   var weeks = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
   var week = weeks[day];//显示为星期几
   var hour = time.getHours();
   var minutes = time.getMinutes();
   var seconds = time.getSeconds();
   if(month<10){
   month = "0"+month;
   }
   if(date<10){
   date = "0"+date;
   }
   if(hour<10){
   hour = "0"+hour;
   }
   if(minutes<10){
   minutes = "0"+minutes;
   }
   if(seconds<10){
   seconds = "0"+seconds;
   }
   document.getElementById("now_time").innerHTML = "<b>"+month+"月"+date+"日 "+week+"<br>"+hour+":"+minutes+":"+seconds+"</b>";
   setTimeout('run()',1000);
 }

 run();

</script>

